import Vue from 'vue'
import VueRouter from 'vue-router'

const Home = () => import('../views/Home.vue')
const Register = () => import('../views/Register.vue')
const Layout = () => import('../views/Layout.vue')
const Index = () => import('../views/Index.vue')

Vue.use(VueRouter)

const routes = [
  {
    path: '/index',
    component: Index
  },
  {
    path: '/layout',
    component: Layout
  },
  {
    path: '/',
    component: Home
  },
  {
    path: '/register',
    component: Register
  },
  
]

const router = new VueRouter({
  routes
})

export default router
